<!-- 中间内容右边动态进度条部分 -->
<template>
  <div class="dynamicProgressBar">
    <div class="title">
      <slot name="title">总人口</slot>
    </div>
    <div class="sjzs">
      <span class="sjzs_left">数据展示</span>
      <span class="sjzs_right">
          <img src="./image/30bsk.png" alt="" />
      </span>
    </div>
    <div class="renshu">
      <slot name="renshu"></slot>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data () {
    return {}
  },
  computed: {},
  watch: {},
  methods: {},
  created () {},
  mounted () {}
}
</script>
<style lang='less' scoped>
.dynamicProgressBar {
  width: 228px;
  height: 150px;
  background-image: url("./image/29dtbjk.png");
  background-repeat: no-repeat;
  overflow: hidden;
  .title {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    margin-top: 22px;
    margin-left: 78px;
  }
  .sjzs {
    margin-left: 5px;
    margin-top: 18px;
    display: flex;
    //   justify-content: space-between;
    align-items: center;
    .sjzs_left {
      font-size: 8px;
    }
    .sjzs_right {
      display: inline-block;
      width: 120px;
      height: 100%;
      overflow: hidden;
      img {
        width: 120px;
        animation:atguigu 3s infinite ;
      }
      @keyframes atguigu {
        0% {
          transform: translateX(-95%);
        }
        50% {
          transform: translateX(0);
        }
        100%{
          transform: translateX(-95%);
        }
      }
    }
  }
  .renshu {
    font-size: 20px;
    font-weight: bold;
    color: #00ffff;
    margin-top: 5px;
    margin-left: 76px;
  }
}
</style>
